home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
ccdl150l.zip
/
IO
/
FREOPEN.C
< prev
next >
Wrap
C/C++ Source or Header
|
1996-08-08
|
374b
|
18 lines
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include <string.h>
#include <libp.h>
extern FILE *_pstreams[_NFILE_];
extern char *_filenames[_NFILE_];
extern int maxfiles ;
FILE *freopen(const char *name, const char *mode, FILE *stream)
{
if (_basefclose(stream,0))
return 0;
if (!_basefopen(name,mode,stream))
return 0;
return stream;
}